package com.yylc.cscore.controller;

import com.yylc.cscore.service.TaskTypeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author xiangnan
 * date 2018/5/7
 */
@RequestMapping("/type")
@RestController
public class TaskTypeController {

    @Resource
    private TaskTypeService taskTypeService;

    @GetMapping("/list")
    public Object getConsumerList() {
        return taskTypeService.getTaskTypeList();
    }

}
